﻿// --------------------------------------------------------------------------------------------------------------------- 
// <copyright file="SA1001CommasMustBeSpacedCorrectly.cs" company="StyleCop for ReSharper Development Team">
//   Copyright (c) StyleCop for ReSharper Development Team. All rights reserved.
// </copyright>
// <summary>
//   Defines the SA1001CommasMustBeSpacedCorrectly type.
// </summary>
//---------------------------------------------------------------------------------------------------------------------

namespace StyleCop.For.ReSharper.TestProject.Spacing
{
    /// <summary>
    /// </summary>
    internal class SA1001CommasMustBeSpacedCorrectly
    {
        #region Constants and Fields

        private byte[,] bytes1 = new byte[6,4];

        /// <summary>
        /// </summary>
        private int[] a = new[] { 1,2,3,4,5 };

        private int[,] b;

        #endregion

        #region Public Methods

        /// <summary>
        /// </summary>
        public void Method1()
        {
            var x = new int[2,2];
            while (true)
            {
                if (x[0,0] > 10)
                {
                    break;
                }
            }

            while (true)
            {
                if (x[0,0] < 5)
                {
                    x[0,0] = 2;
                }

                --x[0,0];
            }
        }

        #endregion
    }
}